﻿using ProgrammingEducationSystem.Models;
namespace ProgrammingEducationSystem.Repository.IRepository
{
    public interface IStuAndClassRepository : IBaseRepository<StuAndClass> 
    {
        /// <summary>
        ///根据班级id查询关系
        /// </summary>
        /// <param name="classId"></param>
        /// <returns></returns>
        Task<List<StuAndClass>> GetByClassIdAsync(Guid classId);

        /// <summary>
        /// 根据班级id删除关系
        /// </summary>
        /// <param name="classId"></param>
        /// <returns></returns>
        Task DeleteByClassIdAsync(Guid classId);
        Task<List<StuAndClass>> GetByStudentIdAsync(string id);
        
    }
}
